home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / lib / alib / system.a < prev    next >
Text File  |  1994-02-01  |  516b  |  29 lines

  1.  
  2.         ;   dummy System() call.  The system() command will use
  3.         ;   System() under 2.0, Execute() under 1.3 ... for programs
  4.         ;   to link a dummy System() must exist under 1.3.  Under
  5.         ;   2.0 the amiga.lib System() will overide this one.
  6.  
  7.         section text,code
  8.  
  9.         xdef    _System
  10.         xdef    @System
  11.         xref    _DOSBase
  12.  
  13. @System:
  14.         movem.l D2/A6,-(sp)
  15.         move.l    A0,D1
  16.         move.l    A1,D2
  17.         bra    sxgo
  18.  
  19. _System:
  20.         movem.l D2/A6,-(A7)
  21.         movem.l 12(sp),D1-D2
  22. sxgo        move.l    _DOSBase(A4),A6
  23.         jsr    -$025E(A6)
  24.         movem.l (sp)+,D2/A6
  25.         rts
  26.  
  27.         END
  28.  
  29.